import { FastifyInstance } from 'fastify';

import User from '../models/user.model';

export default class UserService {
  constructor(private readonly fastify: FastifyInstance) {}

  async queryDetails(id: string): Promise<User> {
    console.info(this.fastify.appConfig.databaseUrl);

    return {
      id,
      username: `user-${id}`,
      userAvatarUrl: `https://example.com/avatar/${id}.png`,
    };
  }
}
